<?php
class User extends CI_Controller{

	public function __construct(){
		parent::__construct();
		$this->load->model('user_model','u');
	}

	public function index(){
		$this->load->view('welcome');
	}

	public function login(){
		$user_p = $this->input->post();
		$user_g = $this->u->get($user_p);
		if($user_g){

		}else{

		}
	}

	public function logout(){

	}

	public function register(){
		$user_p = $this->input->post();
		$user_g = $this->u->get($user_p);
		if($user_g){
			
		}else{
			$this->u->set($user_p);
		}
	}

	public function update(){
		$user_p = $this->input->post();
		$this->a->set($user_p);
	}

}